﻿<metro:Window x:Class="Dither.VersionSelector.Views.CreateRuleTreeView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:metro="http://schemas.codeplex.com/elysium"
        xmlns:params="http://schemas.codeplex.com/elysium/params"
        DataContext="{Binding CreateRuleTree, Source={StaticResource Locator}}"
        Title="CREATE RULE TREE" Width="585" Height="489" WindowStartupLocation="CenterOwner" params:Manager.Theme="Light">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Text="name:" FontSize="16" VerticalAlignment="Center" Margin="10,10,10,5"/>
        <TextBox Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Height="23" VerticalAlignment="Center" Margin="10,5"/>

        <TextBlock Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Text="application to open sln with:" FontSize="16" VerticalAlignment="Center" Margin="10,5"/>
        <ListBox Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" AllowDrop="True" Margin="10,5" Drop="ListBox_Drop" ItemsSource="{Binding RecommendedPrograms}">
            <ListBox.ItemTemplate>
                <HierarchicalDataTemplate>
                    <StackPanel Orientation="Horizontal" ToolTip="{Binding FileLocation}">
                        <Image Source="{Binding Icon}"/>
                        <TextBlock Text="{Binding FriendlyName}" VerticalAlignment="Center" FontSize="16" Margin="7"/>
                    </StackPanel>
                </HierarchicalDataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

        <TreeView Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Height="200" Margin="10,5">
            <TreeViewItem Header="Test Top Level">
                <TreeViewItem Header="Test Parent">
                    <TreeViewItem Header="Test Child"/>
                </TreeViewItem>
            </TreeViewItem>
        </TreeView>

        <Button Grid.Row="5" Grid.Column="1" Height="30" Margin="10,5,10,10" MinWidth="75" Content="CREATE"/>
    </Grid>
</metro:Window>
